<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="Entity.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>教师信息管理</title>
</head>
<body>
<!-- <link href="css/administratorPage.css" rel="stylesheet" type='text/css' /> -->
<link rel="stylesheet" href="<%=request.getContextPath() %>/css/administratorPage.css" type="text/css"></link>
<div class="header">
		<font size='6' color="#FF0000"><br />&emsp;&emsp;&emsp;教师信息管理</font>
	</div>
<form action="JSP_administrator/teacher_Search_Result.jsp" method="post" name="teacher_search_form">
<input style="float:right" type="submit" value="搜索" />
<input type="text" name="teacherNo" style="float:right"/>
</form>	
	<table align="center" width="1300" border="1" class="mytable">
		<tr align="center">
			<td  align="center" colspan="9">
				<h2>所有教师信息</h2>
			</td>
		</tr>
		<tr align="center">
			<td><b>教师号</b></td>
			<td><b>姓名</b></td>
			<td><b>性别</b></td>
			<td><b>学院</b></td>
			<td><b>身份证号</b></td>
			<td><b>密码</b></td>
			<td><b>电话</b></td>
			<td colspan="2"><a href="JSP_administrator/add_Teacher.jsp" style="color: #FFFFFF; text-decoration: none">添加教师</a></td>
		</tr>
		<%
			List<Teacher> tlist = (List<Teacher>) request.getAttribute("tlist");
		
			for (Teacher teacher:tlist) {
		%>
		<tr align="center">
			<td><%=teacher.getTeacherNo()%></td>
			<td><%=teacher.getTeacherName()%></td>
			<td><%=teacher.getSex()%></td>
			<td><%=teacher.getDept()%></td>
			<td><%=teacher.getTeacherId()%></td>
			<td><%=teacher.getPwd()%></td>
			<td><%=teacher.getTel()%></td>
			<td><a href="/UniversityResourceSystem/TeachersInformationPageServlet?opttype=delete&&teacherNo=<%=teacher.getTeacherNo()%>" style="text-decoration: none">删除</a></td>
			<td><a href="/UniversityResourceSystem/TeachersInformationPageServlet?opttype=alter&&teacherNo=<%=teacher.getTeacherNo()%>" style="text-decoration: none">修改</a></td>
		</tr>
		<%
			}
		%>
		<tr>
		<td align="center" colspan="9"><%=request.getAttribute("bar")%>
		</td>
		</tr>
		</table>
</body>
</html>